package com.central.scheduler.api.controller;

import com.central.common.annotation.LoginUser;
import com.central.common.model.PageResult;
import com.central.common.model.Result;
import com.central.common.model.SysUser;
import com.central.scheduler.api.service.IProcessLineageService;
import com.central.scheduler.api.service.ITaskInstanceService;
import com.central.scheduler.dao.model.TaskInstance;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;
import java.util.Map;

/**
 * @author Tindy
 * @date 2021/6/24
 * @describe
 */
@RestController
@Api(tags = "作业流关系模块api")
@Slf4j
@RequestMapping("/processLineage")
public class ProcessLineageController {

    @Autowired
    private IProcessLineageService processLineageService;
    @ApiOperation(value = "作业流关系")
    @GetMapping("/list")
    public Map<String, Object> list(@ApiIgnore @LoginUser SysUser user,String ProcessName) {
        return processLineageService.list(user.getCurrentProjectId(),ProcessName);
    }

}
